import Vue from "vue"

const vm = new Vue();

// 提示弹窗
export const popUpMsg = (type, msg, time) => {
	vm.$message({
		type: type,
		message: msg,
		duration: time
	})
}

// 询问弹窗
export const comfirmPopUp = (type, msg, title, success, fail) => {
	vm.$confirm(msg, title, {
		confirmButtonText: '确定',
		cancelButtonText: '取消',
		type: type
	}).then(success).catch(fail);
}
